home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / DOC / MIDIMOD.ARC / MIDIMOD.TXT
Text File  |  1990-04-16  |  4KB  |  96 lines

  1. Modification of the MIDI interface on the Atari ST
  2. --------------------------------------------------
  3.  
  4. When you don't use the MIDI interface for musical instruments, it is possible
  5. to use it as a general-purpose serial interface.
  6. However, the baudrate is nonstandard (selectable between 7812.5 and 31250 baud)
  7. and the interface is an inverted 5mA current-loop.
  8.  
  9. It is possible to change this, as follows:
  10.  
  11. 1. Modification of the baudrate.
  12.  
  13. Find the MIDI ACIA on the cicuit board. It is a 24-pin IC marked "6850".
  14. There are 2 of these on the board, one is for the keyboard and the other
  15. for the MIDI.  In a 520ST it's U20.  Pin 2 and 6 of this chip should be
  16. connected to some 74LS04 logic, NOT to the keyboard connector.
  17.  
  18. Remove pin 3 and 4 of the MIDI ACIA from the circuit board, connect them
  19. together, and supply a clock frequency on these pins.
  20.  
  21. The ACIA can be programmed to divide this clock by either 16 or 64, so if
  22. the clock is 614400 Hz you can select between 9600 and 38400 baud.  This
  23. is the selection supported by NET.
  24. Lower clock frequencies are also possible, e.g. 153600 Hz to select 2400 or
  25. 9600 baud.
  26.  
  27. The clock can be generated using a CMOS divider (e.g. 4024) connected to
  28. pin 18 of the 68901 (the 48-pin chip).  The frequency on that point is
  29. 2457600 Hz, so a division of 4 yields 614400Hz, a division of 16 yields
  30. 153600 Hz etc.
  31.  
  32.                        ----------------
  33.                       1|              |11 or 6
  34.   68901 p18  ----------|CK   4024    Q|----------- 6850 p3&p4
  35.                        |              |
  36.                        | R            |
  37.                        ----------------
  38.                          |2
  39.                         gnd
  40.  
  41. A switch could be used to change-over between the original situation and
  42. the new clock, or even between 2 or more new clocks available from the
  43. 4024.
  44.  
  45.  
  46. 2. Conversion to RS232 levels
  47.  
  48. It is probably convenient to convert the levels to RS232, because most
  49. equipment that can be connected conforms to this standard.
  50.  
  51. To do this, drivers and receivers of the 1488/1489 type are required.
  52. These are also used in the ST for the MODEM port, and there even is a spare
  53. 1488 driver available.  The 1489 receiver is already fully utilized.
  54.  
  55. It is possible to solder a 1489 (and also a 1488) on top of the existing
  56. IC's on the board, only soldering the supply pins.  The other pins should
  57. be bent sideways and connected to the ACIA as follows:
  58.  
  59.                        ------------
  60.                        |          |
  61.    TxData 6850 p6 ->---| 1/4 1488 |o----------> RS232 TxData
  62.                     |--|          |
  63.                        ------------
  64.  
  65.                        ------------
  66.                        |          |
  67.    RxData 6850 p2 -<--o| 1/4 1489 |-----------< RS232 RxData
  68.                        |          |
  69.                        ------------
  70.  
  71. Pin 2 of the MIDI ACIA should be disconnected from the board (like 3&4).
  72.  
  73. There is also an RTS output pin on the 6850 (p5) that could be brought
  74. out similar to the TxData and used for handshaking (NET does not use this)
  75.  
  76. It would also be possible to convert the MIDI levels to RS232 external to
  77. the ST.  The pinout is like this:
  78.  
  79.                                   MIDI OUT
  80.                       +5 ---220R---- 1
  81.                       +5 ---220R---- 4   ------>---- +
  82.                       gnd----------- 2                photocoupler
  83.      TxData buffered -->----220R---- 5   ------>---- -
  84.      RxData buffered -->----220R---- 3
  85.        |
  86.        |
  87.        ^                          MIDI IN
  88.        |                             1
  89.        |              + ----220R---- 4   ------<----
  90.      RxData photocoupler             2               current source
  91.                       - ------------ 5   ------<----
  92.                                      3
  93.  
  94.             Circuit in Atari ST      |      External circuit
  95.  
  96.